<?php 
session_start();
$VIEW=true;
if(getinfo($viewId,'title')=='未知'&&getinfo($viewId,'author')=='未知'){include('404.html'); exit;}
$statusword='';//后台预览文章加入的状态
if(getinfo($viewId,'status')!='pub'){
	if($_SESSION[ANY_SESSION.'isAdminLogin']){
		$statusword='<span class="tip">【待审核】</span>';
	}else{ include('404.html'); exit;}
}
//if(isset($_GET['viewid'])){ include('../global.php'); $viewId=$_GET['viewid'];}
$cid=getinfo($viewId,'categoryid');
$cnname=getinfo($cid,'name','categories');
$enname=getinfo($cid,'englishname','categories');
$pgtitle=getinfo($viewId,'title').'-';

//分页开始

$allContent=str_replace('scuec.edu.cn:83','scuec.edu.cn',getinfo($viewId,'content'));
$allContent=str_replace('http://www.scuec.edu.cn/tuanwei/','../',$allContent);
$allContent=str_replace('face=宋体',' ',$allContent);
$allArray=explode(ANY_PAGEINT,$allContent);
$allPage=count($allArray);
if($viewPage>$allPage||$viewPage<1)
{echo 'Oops,there is nothing...anymoore?';exit;}
$nextPage=$viewPage+1;
$prePage=$viewPage-1;
if($nextPage>$allPage) $nextPage=$allPage;
if($prePage<1) $prePage=1;
$page=$viewPage-1;

//缓存制造
ob_start();
//include(ANYROOT.'include/config.php');
//include($filePath."header.php");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<meta name="keywords" content="共青团,中南民族大学,中南民族大学委员会,青年网,清音文潭,mygoare,教育网,青年,青年传媒中心" />
	<meta name="description" content="共青团中南民族大学委员会青年网,校园文化的传播与引领平台" />
	<meta name="author" content="青年网,mygoare" />
	<title>共青团中南民族大学委员会青年网--青年课堂</title>
	<link type="text/css" href="../src/css/myResetCss.css" rel="stylesheet" />
	<link rel="stylesheet" type="text/css" href="../src/css/qingyin.css" media="all" />
	<script src="../src/js/jquery-1.63.min.js" type="text/javascript"></script>
  <title></title>
</head>
<body>
	<div id="header">
		<div class="common">
			<p class="own">主办：<span>共青团中南民族大学委员会青年传媒中心</span></p>
			<p class="links"><a href="../">青年网首页</a> - <a href="../news">青年动态</a> - <a href="../qingyin">青年课堂</a> - <a href="../nanhu">青年资讯</a></p>
		</div>
	</div>
	<div class="layout bg_after">
		<div id="content">
		<div id="logo"><a href="./" title="共青团中南民族大学委员会青年网--青年课堂"></a></div>
		<div id="nav">
			<ul>
			  <li>
			    <a href="./?class-meiyuejujiao.htm" title="每月聚焦"></a>
			    <a href="./?class-mingjiazhuanlan.htm" title="一家之言"></a>
			    <a href="./?class-minzuchanglang.htm" title="民族长廊"></a>
			    <a href="./?cate-qingyinwentan.htm" title="清音文潭"></a>
			    <a href="http://www.scuec.edu.cn/dxsn/" target="_blank" title="大学四年"></a>
			    <a href="http://www.scuec.edu.cn/tuanwei/twei/xstt/" target="_blank" title="社团风采"></a>
			    <a href="http://www.scuec.edu.cn/tuanwei/twei/xyst/" target="_blank" title="艺术民大"></a>
			    <a href="" target="_blank" title="国旗班"></a>
			    <a href="http://i.youku.com/u/id_UNDE1MjY4MTQ0" target="_blank" title="明宇传媒"></a>
			  </li>
			</ul>
		</div>
		<div class="clear"></div>

	<div id="left">
			<div class="news_location">
				您现在的位置：
				<a href="../">青年网</a> &gt; <a href="./">青年课堂</a> &gt; <a href="./?class-<?=$enname?>.htm"><?=$cnname?></a> &gt; 正文
			</div>
			<div class="news_title"><h1><?=getinfo($viewId,'title').$statusword?></h1></div>
			<div class="news_info">
				来源：民大青年网 作者：<?=getinfo($viewId,'author')?> 编辑：<?=getinfo($viewId,'editor')?> 发布日期：<?=date("Y-m-d H:i",strtotime(getinfo($viewId,'updatetime')))?> 点击：<?=getinfo($viewId,'click')?>
			</div>
			<div class="news_content">
				
					<?php echo $allArray[$page]; ?>
				
			</div>
			<div class="news_bottom"><img src="../src/images/qingyin_bottom.jpg" width="275px" height="65px" alt="" /></div>
			<div class="news_comment"></div>
	</div>
<?php include("sidebar.php"); ?>
<?php include("footer.php"); 
	$upsql="UPDATE ".tbname('essay')." SET `essay_click`=`essay_click`+1 WHERE `essay_id`='$viewId'";
mysql_query($upsql);
?>
